package com.limf.demo.nettyRpc.consumer;

import com.limf.demo.nettyRpc.HelloService;

public class ClientBootstrap {

	public static final String providerName = "HelloService#hello#";
	
	public static void main(String[] args) throws InterruptedException{
		
		RpcConsumer consumer = new RpcConsumer();
		// 创建一个代理对象
		HelloService service = (HelloService)consumer.createProxy(HelloService.class, providerName);
		for(; ;) {
			Thread.sleep(1000);
			System.out.println(service.hello("are you ok?"));
		}
		
	}
	
	
}
